<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="zhangfn"
	uri="http://github.com/zhangkaitao/tags/zhang-functions"%>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<html>
<head>
<title></title>
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/static/css/css.css">
<script
	src="${pageContext.request.contextPath}/static/js/jquery-1.11.0.min.js"></script>

</head>
<body>

	<c:if test="${not empty msg}">
		<div class="message">${msg}</div>
	</c:if>
	<shiro:hasPermission name="flash:fresh">
		<a href="${pageContext.request.contextPath}/flash/fresh">更新</a>
	</shiro:hasPermission>
	<table class="table">
		<thead>
			<tr>
				<th>名称</th>
				<th>标题</th>
				<th>链接地址</th>
				<th>建立时间</th>
				<th>更新时间</th>
				<th>备注</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${flash_list}" var="flash">
				<tr>
					<td>${flash.name}</td>
					<td>${flash.title}</td>
					<td>${flash.url}</td>
					<td>${flash.setup_time}</td>
					<td>${flash.update_time}</td>
					<td>${flash.remark}</td>
					<td><shiro:hasPermission name="flash:delete">
							<a
								href="${pageContext.request.contextPath}/flash/${flash.id}/delete">删除</a>
						</shiro:hasPermission></td>
				</tr>
			</c:forEach>
		</tbody>
	</table>

</body>
</html>